package com.demo.gateway.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.gateway.mapper.RequestRecordMapper;
import com.demo.gateway.pojo.RecordDO;
import com.demo.gateway.service.IRequestRecord;

/**
 * @author: demo
 * @date: 2020年7月2日
 * @Document : 请求记录服务类
 */
@Service("recordService")
public class RequestRecordService implements IRequestRecord {

	@Autowired
	private RequestRecordMapper requestRecordMapper;

	@Override
	public void addRecord(RecordDO record) {
		requestRecordMapper.addRecord(record);
	}

	@Override
	public void updateRecordResponse(RecordDO record) {
        requestRecordMapper.updateRecordResponse(record);		
	}

	@Override
	public void updateRecordRequest(RecordDO record) {
		requestRecordMapper.updateRecordRequest(record);
	}

}
